package com.source.scala.function

/**
  * Description: 
  * User: 27010 
  * DateTime: 2018/1/21 19:10 
  */
object FunctionTest {
  val anonymousFunction = (x:Int) =>x+1;

  def add(m:Int, n:Int) = m+n;

  val partialFunction = add(2, _:Int)


  val curryFunction =  (add _).curried

}
